package cn.hu.basic.util;

import lombok.Data;

@Data
public class AjaxResult {
    private Boolean success = true;
    private String message = "操作成功";
    private String code ="200";
    private Object resultObject;
    public static AjaxResult getInstance(){
        return new AjaxResult();
    }

    public AjaxResult setResultObject(Object obj) {
        this.resultObject = obj;
        return this;
    }

    public AjaxResult setSuccess(Boolean success) {
        this.success = success;
        return this;
    }

    public AjaxResult setMessage(String message) {
        this.message = message;
        return this;
    }

    public AjaxResult setCode(String code) {
        this.code = code;
        return this;
    }
}
